#include <cstdio>
#include "mysql_utils.h"

void test(){
    using std::vector;
    using std::string;
    sql_utils temp("cppmysql",
                   "175.178.51.126",
                   3330);
    if (!temp.is_connection()){
        fprintf(stderr, "fail\n");
    }else{
        vector<vector<string> > users = temp.select("select * from user");
        for (int i = 0; i < users.size(); ++i) {
            for (int j = 0; j < users[i].size(); ++j) {
                fprintf(stderr, "%s   ", users[i][j].c_str());
            }
            fprintf(stderr,"\n");
        }
    }
}

int main() {
    test();
    fprintf(stderr, "我是你爸");
    return 1;
}
